package cn.iocoder.yudao.module.pplan.enums;

import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * project : hangshiServer
 * <p> 舱位等级 </p>
 *
 * @author yisl
 * @date 2025-07-17【星期四】
 **/
@Getter
@AllArgsConstructor
public enum PPlanAirlineTypeEnum {
    AIRLINE_TYPE_1("1", "国内通用航线"),
    AIRLINE_TYPE_2("2", "国内商务航线"),
    AIRLINE_TYPE_3("3", "国际远程航线"),
    AIRLINE_TYPE_4("4", "国际通用航线"),
    AIRLINE_TYPE_5("5", "国际日韩航线"),
    AIRLINE_TYPE_6("6", "公务舱精品线，经济舱提升航线"),
    AIRLINE_TYPE_7("7", "南航快线");

    private final String code;
    private final String description;

    public static String getDesc(String code) {
        return ArrayUtil.firstMatch(userType -> userType.getCode().equals(code), PPlanAirlineTypeEnum.values()).getDescription();
    }
}
